package com.jluzh.low_level.com.jluzh.repository;

import com.jluzh.low_level.com.jluzh.model.BookView;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

/**
 * @author EvanHuang
 * @date 1/23/2019 11:27 AM
 * @since
 */
@Repository
public interface BookViewRepository extends JpaRepository<BookView, Long>{
    @Query(value = "select * from user_books where id = ?", nativeQuery = true)
    BookView findViewById(Long id);
}
